package org.beaconframework.ext.aws;

import org.beaconframework.util.ThreadContext;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.beans.factory.config.PropertyOverrideConfigurer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringTestContext {

	static ApplicationContext applicationContext;
	public static ApplicationContext get() {
		return applicationContext;
	}
	@BeforeClass public static void setupSpring() {
		applicationContext = new ClassPathXmlApplicationContext(new String[] {"classpath:test-context.xml"});
		ThreadContext tc = new ThreadContext();
		tc.put(ApplicationContext.class, applicationContext);
		tc.bindThread();
		PropertyOverrideConfigurer p;
		
	}

}
